﻿using System;
using System.Windows;

namespace DACU.Windows
{
	/// <summary>
	/// Логика взаимодействия для PlayerWindow.xaml
	/// </summary>
	public partial class PlayerWindow : Window
	{
		public PlayerWindow()
		{
			InitializeComponent();
		}

		private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			playerControl1.WindowClosing();
		}

		private void Window_StateChanged(object sender, EventArgs e)
		{
			if (WindowState == WindowState.Minimized && Owner != null)
				Owner.WindowState = WindowState.Minimized;
		}
	}
}
